package com.skit.common.bean

import java.io.Serializable
import java.util.*
import kotlin.collections.ArrayList

/**
 * @author shuike [Contact me.](mailto:shuike007@gmail.com)
 * @version 1.0
 * @since 2020/5/27
 */
class ActivityBean : Serializable {
    /**
     * activityName : 就业经验交流会
     * activityDescription : 无活动描述
     * quotaNum : 50
     * activityImages : ["https://profile.csdnimg.cn/0/5/2/3_wei_chong_chong","https://profile.csdnimg.cn/0/5/2/3_wei_chong_chong","https://profile.csdnimg.cn/0/5/2/3_wei_chong_chong"]
     * registeredNum : 1
     * signUpStartTime : 1590422400000
     * signUpEndTime : 2020-05-31 00:00:00
     * startTime : 2020-05-31 00:00:00
     * endTime : 2020-06-26 00:00:00
     * type : {"name":"测试"}
     * boutique : false
     * adminScore : 0.5
     * stuScore : 0.3
     * organizer : 计算机学院
     * founderID : 1
     * eventLocation : FZ155
     * status : 0
     */
    var id = 0
    var activityName: String? = null
    var activityDescription: String? = null
    var quotaNum = 0
    var registeredNum = 0
    var signUpStartTime: Long = 0
    var signUpEndTime: Long = 0
    var startTime: Long = 0
    var endTime: Long = 0
    var type: TypeBean? = null
    var boutique = false
    var adminScore = 0.0
    var stuScore = 0.0
    var organizer: Department? = null
    var founderID = 0

    /**
     * 范围 0：全部 1：校区 2：学院 3：专业
     */
    var range = 0

    /**
     * 组织单位ID
     */
    var organizerID = 0
    var eventLocation: String? = null
    var status = 0
    var activityImages: MutableList<String> = ArrayList()
        get() {
            if (field.isEmpty()) {
                field.add("file:///android_asset/img.jpg")
            }
            return field
        }
    var applyStatus = -1
    var isCollect = false
//    fun getActivityImages(): List<String> {
//        if (activityImages == null || activityImages!!.isEmpty()) {
//            if (activityImages == null) activityImages = ArrayList()
//            activityImages!!.add("file:///android_asset/img.jpg")
//        }
//        return activityImages!!
//    }
//
//    fun setActivityImages(activityImages: MutableList<String>?) {
//        this.activityImages = activityImages
//    }

    class TypeBean : Serializable {
        /**
         * name : 测试
         */
        var name: String? = null
        var id = 0
    }
}